﻿@{
    ViewBag.Title = "Index";
}
@section bread
{
    
    <li class="active">首页</li>
}


<div class="page-content">
    @*<div class="page-header">
            <h1>Dashboard
								<small>
                                    <i class="icon-double-angle-right"></i>
                                    overview &amp; stats
                                </small>
            </h1>
        </div>*@
    <!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->

            @*<div class="alert alert-block alert-success">
                <button type="button" class="close" data-dismiss="alert">
                    <i class="icon-remove"></i>
                </button>

                <i class="icon-ok green"></i>

                欢迎进入
									<strong class="green">EFramework
										<small>(v1.2)</small>
                                    </strong>
                ,管理后台。
            </div>*@
            <div class="row">
                @*<div class="col-sm-12">
                    <div class="widget-box transparent" id="recent-box">
                        <div class="widget-header">
                            <h4 class="lighter smaller">
                                <i class="icon-rss orange"></i>
                                待办事项
                            </h4>

                            <div class="widget-toolbar no-border">
                                <ul class="nav nav-tabs" id="recent-tab">
                                    <li class="active">
                                        <a data-toggle="tab" href="#task-tab">任务</a>
                                    </li>

                                    <li>
                                        <a data-toggle="tab" href="#member-tab">人员</a>
                                    </li>

                                </ul>
                            </div>
                        </div>

                        <div class="widget-body">
                            <div class="widget-main padding-4">
                                <div class="tab-content padding-8 overflow-visible">
                                    <div id="task-tab" class="tab-pane active">
                                       <!--<h4 class="smaller lighter green">
                                            <i class="icon-list"></i>
                                            Sortable Lists
                                        </h4> -->

                                        <ul id="tasks" class="item-list">
                                            <li class="item-orange clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Answering customer questions</span>
                                                </label>

                                                <div class="pull-right easy-pie-chart percentage" data-size="30" data-color="#ECCB71" data-percent="42">
                                                    <span class="percent">42</span>%
                                                </div>
                                            </li>

                                            <li class="item-red clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Fixing bugs</span>
                                                </label>

                                                <div class="pull-right action-buttons">
                                                    <a href="#" class="blue">
                                                        <i class="icon-pencil bigger-130"></i>
                                                    </a>

                                                    <span class="vbar"></span>

                                                    <a href="#" class="red">
                                                        <i class="icon-trash bigger-130"></i>
                                                    </a>

                                                    <span class="vbar"></span>

                                                    <a href="#" class="green">
                                                        <i class="icon-flag bigger-130"></i>
                                                    </a>
                                                </div>
                                            </li>

                                            <li class="item-default clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Adding new features</span>
                                                </label>

                                                <div class="inline pull-right position-relative dropdown-hover">
                                                    <button class="btn btn-minier bigger btn-primary">
                                                        <i class="icon-cog icon-only bigger-120"></i>
                                                    </button>

                                                    <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-caret dropdown-close pull-right">
                                                        <li>
                                                            <a href="#" class="tooltip-success" data-rel="tooltip" title="Mark&nbsp;as&nbsp;done">
                                                                <span class="green">
                                                                    <i class="icon-ok bigger-110"></i>
                                                                </span>
                                                            </a>
                                                        </li>

                                                        <li>
                                                            <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                                <span class="red">
                                                                    <i class="icon-trash bigger-110"></i>
                                                                </span>
                                                            </a>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </li>

                                            <li class="item-blue clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Upgrading scripts used in template</span>
                                                </label>
                                            </li>

                                            <li class="item-grey clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Adding new skins</span>
                                                </label>
                                            </li>

                                            <li class="item-green clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Updating server software up</span>
                                                </label>
                                            </li>

                                            <li class="item-pink clearfix">
                                                <label class="inline">
                                                    <input type="checkbox" class="ace" />
                                                    <span class="lbl">Cleaning up</span>
                                                </label>
                                            </li>
                                        </ul>
                                    </div>

                                    <div id="member-tab" class="tab-pane">
                                        <div class="clearfix">
                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Bob Doe's avatar" src="/Areas/Admin/Content/Default/headphont/user.jpg" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Bob Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">20 min</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-warning label-sm">pending</span>

                                                        <div class="inline position-relative">
                                                            <button class="btn btn-minier bigger btn-yellow btn-no-border dropdown-toggle" data-toggle="dropdown">
                                                                <i class="icon-angle-down icon-only bigger-120"></i>
                                                            </button>

                                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                                <li>
                                                                    <a href="#" class="tooltip-success" data-rel="tooltip" title="Approve">
                                                                        <span class="green">
                                                                            <i class="icon-ok bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>

                                                                <li>
                                                                    <a href="#" class="tooltip-warning" data-rel="tooltip" title="Reject">
                                                                        <span class="orange">
                                                                            <i class="icon-remove bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>

                                                                <li>
                                                                    <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                                        <span class="red">
                                                                            <i class="icon-trash bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Joe Doe's avatar" src="/Areas/Admin/Content/Default/headphont/avatar2.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Joe Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">1 hour</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-warning label-sm">pending</span>

                                                        <div class="inline position-relative">
                                                            <button class="btn btn-minier bigger btn-yellow btn-no-border dropdown-toggle" data-toggle="dropdown">
                                                                <i class="icon-angle-down icon-only bigger-120"></i>
                                                            </button>

                                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                                <li>
                                                                    <a href="#" class="tooltip-success" data-rel="tooltip" title="Approve">
                                                                        <span class="green">
                                                                            <i class="icon-ok bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>

                                                                <li>
                                                                    <a href="#" class="tooltip-warning" data-rel="tooltip" title="Reject">
                                                                        <span class="orange">
                                                                            <i class="icon-remove bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>

                                                                <li>
                                                                    <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                                        <span class="red">
                                                                            <i class="icon-trash bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Jim Doe's avatar" src="/Areas/Admin/Content/Default/headphont/avatar.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Jim Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">2 hour</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-warning label-sm">pending</span>

                                                        <div class="inline position-relative">
                                                            <button class="btn btn-minier bigger btn-yellow btn-no-border dropdown-toggle" data-toggle="dropdown">
                                                                <i class="icon-angle-down icon-only bigger-120"></i>
                                                            </button>

                                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
                                                                <li>
                                                                    <a href="#" class="tooltip-success" data-rel="tooltip" title="Approve">
                                                                        <span class="green">
                                                                            <i class="icon-ok bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>

                                                                <li>
                                                                    <a href="#" class="tooltip-warning" data-rel="tooltip" title="Reject">
                                                                        <span class="orange">
                                                                            <i class="icon-remove bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>

                                                                <li>
                                                                    <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                                        <span class="red">
                                                                            <i class="icon-trash bigger-110"></i>
                                                                        </span>
                                                                    </a>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Alex Doe's avatar" src="/Areas/Admin/Content/Default/headphont/avatar5.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Alex Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">3 hour</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-danger label-sm">blocked</span>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Bob Doe's avatar" src="/Areas/Admin/Content/Default/headphont/avatar2.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Bob Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">6 hour</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-success label-sm arrowed-in">approved</span>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Susan's avatar" src="/Areas/Admin/Content/Default/headphont/avatar3.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Susan</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">yesterday</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-success label-sm arrowed-in">approved</span>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Phil Doe's avatar" src="/Areas/Admin/Content/Default/headphont/avatar4.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Phil Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">2 days ago</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-info label-sm arrowed-in arrowed-in-right">online</span>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="itemdiv memberdiv">
                                                <div class="user">
                                                    <img alt="Alexa Doe's avatar" src="/Areas/Admin/Content/Default/headphont/avatar1.png" />
                                                </div>

                                                <div class="body">
                                                    <div class="name">
                                                        <a href="#">Alexa Doe</a>
                                                    </div>

                                                    <div class="time">
                                                        <i class="icon-time"></i>
                                                        <span class="green">3 days ago</span>
                                                    </div>

                                                    <div>
                                                        <span class="label label-success label-sm arrowed-in">approved</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="center">
                                            <i class="icon-group icon-2x green"></i>

                                            &nbsp;
																<a href="#">See all members &nbsp;
																	<i class="icon-arrow-right"></i>
                                                                </a>
                                        </div>

                                        <div class="hr hr-double hr8"></div>
                                    </div>
                                    <!-- member-tab -->

                                </div>
                            </div>
                            <!-- /widget-main -->
                        </div>
                        <!-- /widget-body -->
                    </div>
                    <!-- /widget-box -->
                </div>*@
                <!-- /span -->
                <div class="col-sm-12">
                    <div class="widget-box transparent" id="recent-box2">
                        <div class="widget-header">
                            <h4 class="lighter smaller">
                                <i class="icon-rss orange"></i>
                                系统探针
                            </h4>

                            <div class="widget-toolbar no-border">
                                <ul class="nav nav-tabs" id="recent-tab2">
                                    <li class="active">
                                        <a data-toggle="tab" href="#server-tab">服务器</a>
                                    </li>

                                    <li>
                                        <a data-toggle="tab" href="#customer-tab">客户端</a>
                                    </li>

                                </ul>
                            </div>
                        </div>

                        <div class="widget-body">
                            <div class="widget-main padding-4">
                                <div class="tab-content padding-8 overflow-visible">
                                    <div id="server-tab" class="tab-pane active">
                                        <table class="table table-striped table-bordered table-hover">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 155px;">服务器名称</td>
                                                    <td>@Server.MachineName</td>

                                                </tr>
                                                <tr>

                                                    <td>服务器域名</td>
                                                    <td>@Request.ServerVariables["SERVER_NAME"]</td>
                                                </tr>
                                                <tr>

                                                    <td>服务器IP</td>
                                                    <td>@Request.ServerVariables["LOCAL_ADDR"]</td>
                                                </tr>
                                                <tr>

                                                    <td>HTTP端口</td>
                                                    <td>@Request.ServerVariables["SERVER_PORT"]</td>
                                                </tr>
                                                <tr>

                                                    <td>当前系统用户名</td>
                                                    <td>@Environment.UserName</td>
                                                </tr>
                                                <tr>

                                                    <td>服务器系统版本</td>
                                                    <td>@Environment.OSVersion.ToString()</td>
                                                </tr>
                                                <tr>

                                                    <td>服务器系统信息</td>
                                                    <td>@Request.ServerVariables["HTTP_USER_AGENT"] </td>
                                                </tr>
                                                <tr>

                                                    <td>服务器处理器个数</td>
                                                    <td>@Environment.ProcessorCount.ToString() </td>
                                                </tr>
                                                <tr>

                                                    <td>服务器物理内存</td>
                                                    <td>@Environment.WorkingSet.ToString() </td>
                                                </tr>
                                                <tr>

                                                    <td>启动到现在已运行</td>
                                                    <td>@((Environment.TickCount / 0x3e8) / 60) 分钟</td>
                                                </tr>
                                                <tr>

                                                    <td>CPU 数量</td>
                                                    <td>@Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS").ToString() </td>
                                                </tr>
                                                <tr>

                                                    <td>CPU类型</td>
                                                    <td>@Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER").ToString()</td>
                                                </tr>
                                                <tr>

                                                    <td>服务端语言</td>
                                                    <td>@Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"] </td>
                                                </tr>
                                                <tr>

                                                    <td>Framework版本</td>
                                                    <td>@Environment.Version </td>
                                                </tr>
                                                <tr>

                                                    <td>服务器时间</td>
                                                    <td>@DateTime.Now</td>
                                                </tr>
                                                <tr>

                                                    <td>ASP.NET所站内存</td>
                                                    <td>@(((Double)System.Diagnostics.Process.GetCurrentProcess().WorkingSet64 / 1048576).ToString("N2")) M</td>
                                                </tr>
                                                <tr>

                                                    <td>ASP.NET所占CPU</td>
                                                    <td>@(((TimeSpan)System.Diagnostics.Process.GetCurrentProcess().TotalProcessorTime).TotalSeconds.ToString("N0")) %</td>
                                                </tr>
                                                <tr>

                                                    <td>探针文件路径</td>
                                                    <td>@Server.MapPath(Request.ServerVariables["SCRIPT_NAME"])</td>
                                                </tr>
                                                <tr>

                                                    <td>服务器系统所在文件夹</td>
                                                    <td>@Environment.SystemDirectory</td>
                                                </tr>
                                                <tr>

                                                    <td>允许文件</td>
                                                    <td>@Request.ServerVariables["HTTP_ACCEPT"]</td>
                                                </tr>

                                                <tr>
                                                    <td>MD目录</td>
                                                    <td>@Request.ServerVariables["APPL_MD_PATH"]</td>
                                                </tr>
                                                <tr>
                                                    <td>执行文件绝对路径</td>
                                                    <td>@Request.ServerVariables["PATH_TRANSLATED"]</td>
                                                </tr>
                                                <tr>
                                                    <td>虚拟目录绝对路径</td>
                                                    <td>@Request.ServerVariables["APPL_PHYSICAL_PATH"]</td>
                                                </tr>
                                                <tr>
                                                    <td>虚拟目录Session总数</td>
                                                    <td>@Session.Contents.Count</td>
                                                </tr>
                                                <tr>
                                                    <td>虚拟目录Application总数</td>
                                                    <td>@HttpContext.Current.Application.Contents.Count</td>
                                                </tr>
                                                <tr>
                                                    <td>IIS版本</td>
                                                    <td>@Request.ServerVariables["SERVER_SOFTWARE"]</td>
                                                </tr>
                                                <tr>
                                                    <td>脚本超时时间</td>
                                                    <td>@((Server.ScriptTimeout / 1000).ToString()) 秒</td>
                                                </tr>
                                                <tr>
                                                    <td>SLL连接</td>
                                                    <td>@Request.ServerVariables["HTTPS"]</td>
                                                </tr>
                                                <tr>
                                                    <td>CGI版本</td>
                                                    <td>@Request.ServerVariables["GATEWAY_INTERFACE"]</td>
                                                </tr>
                                                <tr>
                                                    <td>IE版本</td>
                                                    <td>
                                                        @{
                                                            Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Version Vector");
                                                        }
                                                        @key.GetValue("IE", "未检测到")


                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>

                                    <div id="customer-tab" class="tab-pane">
                                        <table class="table table-striped table-bordered table-hover">
                                            <tbody>
                                                <tr>
                                                    <td style="width: 240px;">客户端ip地址</td>
                                                    <td>@Request.ServerVariables["REMOTE_ADDR"] </td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器类型</td>
                                                    <td>@Request.Browser.Type</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器类型</td>
                                                    <td>@Request.Browser</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器版本</td>
                                                    <td>@Request.Browser.Version</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器主版本</td>
                                                    <td>@Request.Browser.MajorVersion</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器次版本</td>
                                                    <td>@Request.Browser.MinorVersion</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否测试版本</td>
                                                    <td>@Request.Browser.Beta</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否客户平台</td>
                                                    <td>@Request.Browser.Platform</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否AOL 浏览器</td>
                                                    <td>@Request.Browser.AOL</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否基于Win16</td>
                                                    <td>@Request.Browser.Win16</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否基于Win32</td>
                                                    <td>@Request.Browser.Win32</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持框架</td>
                                                    <td>@Request.Browser.Frames</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持表格</td>
                                                    <td>@Request.Browser.Tables</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持Cookies</td>
                                                    <td>@Request.Browser.Cookies</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持VB Script</td>
                                                    <td>@Request.Browser.VBScript</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持JavaScript</td>
                                                    <td>@HttpContext.Current.Request.Browser.JavaScript</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器支持JScript的版本</td>
                                                    <td>@Request.Browser.JScriptVersion</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持JavaApplets</td>
                                                    <td>@Request.Browser.JavaApplets</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持ActiveXControls</td>
                                                    <td>@Request.Browser.ActiveXControls</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器是否支持CDF</td>
                                                    <td>@Request.Browser.CDF</td>
                                                </tr>
                                                <tr>
                                                    <td>户端浏览器是否支持背景音乐</td>
                                                    <td>@Request.Browser.BackgroundSounds</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器ECMAScript版本</td>
                                                    <td>@Request.Browser.EcmaScriptVersion</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器MSDom版本</td>
                                                    <td>@Request.Browser.MSDomVersion</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器W3CDom版本</td>
                                                    <td>@Request.Browser.W3CDomVersion</td>
                                                </tr>
                                                <tr>
                                                    <td>客户端浏览器语言</td>
                                                    <td>@Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"]</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <!-- member-tab -->

                                </div>
                            </div>
                            <!-- /widget-main -->
                        </div>
                        <!-- /widget-body -->
                    </div>
                    <!-- /widget-box -->
                </div>
                <!-- /span -->
            </div>
            <!-- PAGE CONTENT ENDS -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->

<!-- /.main-content -->

